package com.qcq.wecheck.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.qcq.wecheck.entity.Auth;
import com.qcq.wecheck.mapper.AuthMapper;
import com.qcq.wecheck.service.AuthService;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author O
 * @version 1.0
 * @since 2018/9/14
 */
@Service
@CacheConfig(cacheNames = "auth")
public class AuthServiceImpl extends ServiceImpl<AuthMapper, Auth> implements AuthService {
	@Override
	@Cacheable(key="#id")
	public Auth selectById(Serializable id) {
		return super.selectById(id);
	}
}
